package com.wn.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @program: pms
 * @description:计量器具借用表实体类
 * @author: ZC
 * @create: 2022.10.19/14点15分
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BorrowerMeasuringDevice {
    private int id;
    @NotNull(message = "借用人不能为空")
    private Hr borrowerId;//借用人   与员工表对应
    @NotNull(message = "计量器具编号不能为空")
    private MeasuringDevice measuringDeviceId;//计量器具编号   与计量器具台账表ID对应
    @NotEmpty(message = "借用时间不能为空")
    private String borrowingTime;//借用时间
    @NotEmpty(message = "归还时间不能为空")
    private String returnTime;//归还时间
    @NotEmpty(message = "流程实例ID不能为空")
    private String activitiInstanceId;//流程实例ID
    @NotEmpty(message = "编号不能为空")
    private String number;//编号
}
